package com.hotpot.comm.task;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.xiaoleilu.hutool.date.DateUtil;
@Component
public class TestTask {
	
	/**
	 * 方法描述：测试定时器
	 * @return: void
	 */
	@Scheduled(fixedRate = 5000)
    public void reportCurrentTime() {
        System.out.println("现在时间：" + DateUtil.now());
    }

}
